<template>
<div>
    hello example
    <p>
        <el-button @click="testPush">tab内跳转</el-button>

        <el-button @click="testAdd">新开tab</el-button>
    </p>
</div>
</template>

<script>
export default {
    name: 'example',
    data() {
        return {

        };
    },
    methods: {
        testPush() {
            this.$tab.push({
                name: 'example-tab',
                query: {
                    a: 1,
                },
            });
        },
        testAdd() {
            this.$tab.add({
                title: '测试new tab',
                flag: 'a-3',
                query: {
                    a: '新的query',
                },
            });
        },
    },
};
</script>

<style>

</style>
